/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author garyq
 */
public class testmain {

    public static void main (String[] args)
    {
        int success = 0;
        Exploit ex = new Exploit(args[2]);
        Model m = new Model(args[0], args[1], ex, 100);

        for (int i = 0; i < 100; i++)
        {
            m.resetModel();
            Node n = m.getRandomNode();
            if(m.runModel(n, 0))
                success++;
        }
        System.out.format("Attack was %.2f successful", (double)success/100);
    }

}
